import React from 'react';
import { connect } from 'react-redux';
import { View, Button, Text } from '@tarojs/components';
import SetPassword from '@/components/SetPassword';
import utils from '@/utils';
import '../style.scss';

const Index = ({ dispatch }) => {
  const carry = () => {
    utils.goMePage(dispatch);
  };
  return (
    <View className="set-view">
      <View className="set-text-view">
        <Text>设置支付密码</Text>
      </View>
      <SetPassword text="设置密码：" type="password" />
      <SetPassword text="确认密码：" type="password" />
      <View className="btn-view-card">
        <Button className="btn-yellow" onClick={carry}>
          完成
        </Button>
      </View>
    </View>
  );
};
export default connect(({}) => ({}))(Index);
